display: Add property annotations
authorMatthias Clasen <mclasen@redhat.com>
Thu, 25 Feb 2021 01:02:57 +0000 (20:02 -0500)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 11 Mar 2021 16:37:32 +0000 (16:37 +0000)
Connect properties, getters, and setters with annotations.

gdk/gdkdisplay.c

index af2dc50b8ed09b58e92f9fda676bebf549de0050..b86ad959f245b3e38b63a4ee6e8a9a02470a8117 100644 (file)
@@ -149,11 +149,9 @@ gdk_display_class_init (GdkDisplayClass *class)
   class->get_default_seat = gdk_display_real_get_default_seat;
 
   /**
-   * GdkDisplay:composited:
+   * GdkDisplay:composited: (attributes org.gtk.Property.get=gdk_display_is_composited)
    *
    * %TRUE if the display properly composites the alpha channel.
-   *
-   * See [method@Gdk.Display.is_composited] for details.
    */
   props[PROP_COMPOSITED] =
     g_param_spec_boolean ("composited",
@@ -163,11 +161,9 @@ gdk_display_class_init (GdkDisplayClass *class)
                           G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
 
   /**
-   * GdkDisplay:rgba:
+   * GdkDisplay:rgba: (attributes org.gtk.Property.get=gdk_display_is_rgba)
    *
    * %TRUE if the display supports an alpha channel.
-   *
-   * See [method@Gdk.Display.is_rgba] for details.
    */
   props[PROP_RGBA] =
     g_param_spec_boolean ("rgba",
@@ -177,11 +173,9 @@ gdk_display_class_init (GdkDisplayClass *class)
                           G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
 
   /**
-   * GdkDisplay:input-shapes:
+   * GdkDisplay:input-shapes: (attributes org.gtk.Property.get=gdk_display_supports_input_shapes)
    *
    * %TRUE if the display supports input shapes.
-   *
-   * See [method@Gdk.Display.supports_input_shapes] for details.
    */
   props[PROP_INPUT_SHAPES] =
     g_param_spec_boolean ("input-shapes",
@@ -989,7 +983,7 @@ gdk_display_get_primary_clipboard (GdkDisplay *display)
 }
 
 /**
- * gdk_display_supports_input_shapes:
+ * gdk_display_supports_input_shapes: (attributes org.gtk.Method.get_property=input-shapes)
  * @display: a `GdkDisplay`
  *
  * Returns %TRUE if the display supports input shapes.
@@ -1192,7 +1186,7 @@ gdk_display_set_debug_flags (GdkDisplay    *display,
 }
 
 /**
- * gdk_display_is_composited:
+ * gdk_display_is_composited: (attributes org.gtk.Method.get_property=composited)
  * @display: a `GdkDisplay`
  *
  * Returns whether surfaces can reasonably be expected to have
@@ -1233,7 +1227,7 @@ gdk_display_set_composited (GdkDisplay *display,
 }
 
 /**
- * gdk_display_is_rgba:
+ * gdk_display_is_rgba: (attributes org.gtk.Method.get_property=rgba)
  * @display: a `GdkDisplay`
  *
  * Returns whether surfaces on this @display are created with an